package _3线程属性;

public class MyThread extends Thread{

	@Override
	public void run() 
	{
		// 得到当前线程对象 Thread.currentThread()
		
		// 打印线程信息
		System.out.println("子线程:"+Thread.currentThread().getId());// 线程编号
		System.out.println("子线程:"+Thread.currentThread().getName());// 线程名
		System.out.println("子线程:"+Thread.currentThread().getPriority());// 5 1~10
		
		
	}
}
